package com.ruoyi.core.constant;

/**
 * @author wanghao 913351190@qq.com
 * @create 2024/1/11 10:16
 */
public class Constant {

    //是否/状态
    public static final String YES = "1";
    public static final String NO = "0";


    // 返回状态码
    public static final Integer CODE_SUCCESS = 200;
    public static final Integer CODE_FAIL = 500;
    public static final Integer CODE_LOGIN = 401;

    /**
     * 路径分隔符
     * 禁用File.separator
     */
    public static final String separator = "/";

    /**
     * 换行符
     * 禁用System.lineSeparator()
     */
    public static final String lineSeparator = "\n";

    /**
     * 系统临时目录
     */
    public static final String PATH_ROOT = System.getProperty("user.dir");

    /**
     * 系统临时目录
     */
    public static final String PATH_TEMP = PATH_ROOT + separator + "temp";

}
